@import 'config';
.navbar{
  display: flex;
  justify-content: space-between;
  height: px2rem(36px);
  padding: px2rem(6px) 0 px2rem(2px);
  border-top: px2rem(1px) solid $light;
  align-content: center;
  background-color: $white;
  .nav-item{
    position: relative;
    flex: 1;
    display: block;
    text-align: center;
    color: $dark;
    &.router-link-exact-active{
      .icon,.text{ color:$primary;}
    }
    .icon{
      display: block;
      width: px2rem(20px);
      height: px2rem(20px);
      margin: 0 auto;
      color:$darker;
    }
    .text{
      display: block;
      height: px2rem(10px);
      font-size: px2rem(10px);
      padding-top: px2rem(2px);
    }
    .cart{
      $size: 44px;
      position: absolute;
      left: 50%;
      top: px2rem(-6px);
      padding: px2rem(10px);
      margin-left: px2rem(-$size/2);
      width: px2rem($size);
      height: px2rem($size);
      background-color: $primary;
      border-radius: 50%;
      box-sizing: border-box;
      .text{
        display: none;
      }
      .icon{
        width: px2rem(24px);
        height: px2rem(24px);
        color:$white;
      }
      .badge{
        $height: 12px;
        position: absolute;
        top: 0;
        right: 0;
        height: px2rem($height);
        padding: 0 px2rem(4px);
        line-height: px2rem(12px);
        font-size: px2rem(10px);
        color: $white;
        background-color: $red;
        border-radius: px2rem($height / 2);
      }
    } 
  }
}